package com.usian.article.controller.v1;

import com.usian.apis.article.ApArticleConfigControllerApi;
import com.usian.article.service.ApArticleConfigService;
import com.usian.model.article.pojo.ApArticleConfig;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/article/api/v1/article_config")
public class ApArticleConfigController implements ApArticleConfigControllerApi {
@Autowired
private ApArticleConfigService apArticleConfigService;
@PostMapping("/save")
    @Override
    public ResponseResult saveArticleConfig(@RequestBody ApArticleConfig apArticleConfig) {
        apArticleConfigService.save(apArticleConfig);
        return ResponseResult.okResult("ok");
    }
}
